package com.indexingsystem.boss.entity;

import java.io.Serializable;

public class ArticleContents implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    private String resId;

    private String content;

    public String getResId()
    {
        return resId;
    }

    public void setResId(String resId)
    {
        this.resId = resId;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((content == null) ? 0 : content.hashCode());
        result = prime * result + ((resId == null) ? 0 : resId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        ArticleContents other = (ArticleContents)obj;
        if (content == null)
        {
            if (other.content != null) return false;
        }
        else if (!content.equals(other.content)) return false;
        if (resId == null)
        {
            if (other.resId != null) return false;
        }
        else if (!resId.equals(other.resId)) return false;
        return true;
    }

    public ArticleContents()
    {
        super();
    }

    public ArticleContents(String resId, String content)
    {
        super();
        this.resId = resId;
        this.content = content;
    }

    @Override
    public String toString()
    {
        return "ArticleContents [resId=" + resId + ", content=" + content + "]";
    }    
}